package org.shj.jvm;

/**
 * -verbose:gc -Xms20M -Xmx20M -Xmn12M -XX:+PrintGCDetails -XX:SurvivorRatio=8  
 * -XX:+UseSerialGC -XX:MaxTenuringThreshold=1
 * @author Administrator
 *
 */
public class TenuringThreshold {

	private static int _1MB = 1024*1024;
	
	public static void main(String[] args) {
		byte[] a1, a2, a3;
		a1 = new byte[_1MB /4];
		System.out.println("111");
		
		a2 = new byte[4 * _1MB];
		System.out.println("222");
		
		a3 = new byte[4 * _1MB];
		System.out.println("333");
		
		a3 = null;
		a3 = new byte[4 * _1MB];
		System.out.println("444");

	}

}
